package com.xiaoming.project.core.string;

public class StringEqualsTest {
    static void stringEqualsTest() {
        String x = "string";
        String y = "string";
        String z = new String("string");
        System.out.println(x == y); // true
        System.out.println(x == z); // false
        System.out.println(x.equals(y)); // true
        System.out.println(x.equals(z)); // true
    }
}